import { publicType } from "@/interface/public";
import { ElMessage } from "element-plus";

/*
 * 通知弹框
 * message：通知的内容
 * type：通知类型
 * duration：通知显示时长（ms）
 * */
export const elMessage = (message: string = "操作成功", type: publicType["remindType"] = "success", duration = 3000) => {
  ElMessage({
    showClose: true,
    message: message,
    type: type,
    center: false,
    duration: duration
  });
};
